package olr.olrusers.models
{
	import com.adobe.cairngorm.model.IModelLocator;
	import com.adobe.cairngorm.model.ModelLocator;
	
	import mx.collections.ArrayCollection;

	[Bindable]
	public class Users implements IModelLocator
	{
		private static var _instance:ModelLocator;
		
		public function Users(enforcer:SingletonEnforcer)
		{
			if (enforcer == null)
			{
				throw new Error("Only one instance of Users can exist");
			}
		}
		
		public static function getInstance() : ModelLocator
		{
			if (_instance == null){ _instance = new Authentcation(new SingletonEnforcer); }
			return _instance
		}
		
		private var Users:ArrayCollection;
	}
}

class SingletonEnforcer {}